< previous page page_934 next page >

Page 934
2. Select Help File and then enter the name of the help file (PROJECT.HLP), including its path. You can also click the _ box at the right of the field to Search for the file.
3. Select OK.
This assigns the help file to the project. You now need to assign the help context ID to the controls on the Company Master form. Follow these steps to make the attachments:
1. Open the Company Master project.
2. Select and open the Company Master form.
3. Select the txtCompanyName control.
4. Press F4 and move to the HelpContextID property in the Properties window.
5. Enter 1.
The entry in the HelpContextID property refers to the value you set in the project file (PROJECT.HPJ) for the context string.
Save your form and run the project. Click in the Company Name field and press F1. You should now see the help you wrote for the Company Information topic.
Now exit help and return to form design mode. Assign the remaining input fields within the Company Information frame to HelpContextID 1. Assign 2 to the HelpContextID property for all the fields in the Contact Information frame, and assign 3 to all the input fields in the Other Information frame.
Run the project and select any field on the form. Press F1 to bring up help. Select the Index button and then the Find tab. Notice that the keywords appear in the middle box and the titles appear in the lower box.
You can use the >> button in the Company Information topic to move to the Contact Information topic. This happens as a result of setting the browse sequence for both topics to the same group. Notice that Company Information comes first within this browse sequence. This is due to the browse sequence of Company:1 for the Company Information topic and Company:2 for the Contact Information topic.
While in help, select the Contents button. Company information should now be displayed. The Contents button displays the first topic in your help file if you do not declare a contents topic in your project file. Declaring this topic and building a contents page is the subject of the next lesson.

 
< previous page page_934 next page >

If you like this book, buy it!